﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddStaffDetail.aspx.cs" Inherits="SchoolAdministration.AddStaffDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .fieldvalidator
{padding-left:40px; color:red;
}
          .checkbox
          {margin-left:190px;
           padding-right:20px;
           float:left;
          }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
    
     <h3 class="page-title">
                     Add Staff Details
                   </h3>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadcrum" runat="server">
    <ul class="breadcrumb">
                       <li>
                           <a href="#">School Administrator</a>
                           <span class="divider">/</span>
                       </li>
                       <li>
                           <a href="#">Staff Manangement</a>
                           <span class="divider">/</span>
                       </li>
                       <li class="active">
                           Add Staff Details
                       </li>
                      
                   </ul>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainchangingpart" runat="server">
    <div class="widget yellow">
        <div class="widget-title">
            <h4>Add Staff</h4>
            <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <a href="javascript:;" class="icon-remove"></a>
            </span>
         </div>
         
         <div class="widget-body">
    <div style="padding:25px;">
                    <!-- TEXTBOXES -->
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >First Name</label>
                   <asp:TextBox ID="TxtStaffFName" CssClass="text large required"  runat="server" ></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="First Name is Required" ControlToValidate="TxtStaffFname" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Last Name</label>
                   <asp:TextBox ID="TxtStaffLName" CssClass="text large required" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="Last Name is Required" ControlToValidate="TxtStaffLname" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Marital Status</label>
                   <asp:DropDownList ID="MaritalStatus" runat="server">
                       <asp:ListItem>Married</asp:ListItem>
                       <asp:ListItem>SIngle</asp:ListItem>
                   </asp:DropDownList><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Address</label>
                   <asp:TextBox ID="Address" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="Address is Required" ControlToValidate="Address" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Phone No</label>
                   <asp:TextBox ID="Phone" CssClass="text large required" runat="server"></asp:TextBox><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Mobile No</label>
                   <asp:TextBox ID="Mobile" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="Mobile Number is Required" ControlToValidate="Mobile" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Date Of Birth</label>
                   <asp:TextBox ID="DOB" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="Date of Birth is Required" ControlToValidate="DOB" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Citizenship No</label>
                   <asp:TextBox ID="Citizenship" CssClass="text large required"  runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="Citizenship Number is Required" ControlToValidate="Citizenship" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >Date Of Appointment</label>
                   <asp:TextBox ID="DateOfAppointment" CssClass="text large required" runat="server"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="Date of Appointment is Required" ControlToValidate="DateOfAppointment" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   <label style="width:150px; padding-right:20px; float:left; font-size:16px;" >CV</label>           
                   <asp:FileUpload ID="CVUpload" runat="server" />
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ValidationGroup="addstaffdetails" ErrorMessage="CV is Required" ControlToValidate="CVUpload" CssClass="fieldvalidator"></asp:RequiredFieldValidator><br />
                   
        <asp:Label ID="lblmsg" runat="server" Text="Label"></asp:Label>
      <asp:Button ID="StaffButton" runat="server" Text="Submit" OnClick="StaffButton_Click" ValidationGroup="addstaffdetails" />    
   </div>     
             </div>      	
</asp:Content>
